<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglibs.jsp"%>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection"content="telephone=no, email=no" />
    <title>一呼百应</title>
    <link rel="stylesheet" href="${basePath}/css/common.css?v=3">
    <link rel="stylesheet" href="${basePath}/css/style.css?v=3">
</head>
<body>
	<header>
        <h1>免费注册</h1>
    </header>
    <div class="page">
        <form action="#" id="regForm" method="post" class="reg-form bind-form">
        	<%-- <input type="hidden" value="${token}" name="token"/> --%>
        	<input type="hidden" name = "referId" value="wechat" />
        	<input type="hidden" id="openid" name="openid" value="${openid}" />
        	
        	<div class="input-control">
                <label for="username">用&nbsp;&nbsp;户&nbsp;&nbsp;名</label>
                <span class="input-icon" id="username-icon"></span>
                <div class="input-box-control">
                    <input type="text" id="username" name="n_user" onblur="check_name(this.value)" maxlength="16" onfocus="check_name(this.value)">
                </div>
            </div>
            <div class="msg-control" id="username-msg"></div>
   
            <div class="input-control">
                <label for="password">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</label>
                <span class="input-icon" id="password-icon"></span>
                <div class="input-box-control">
                    <input type="text" id="password" name="n_pass" onblur="check_pass()"  maxlength="16" onfocus="check_pass()">
                </div>
            </div>
            <div class="msg-control" id="password-msg"></div>
            
            <div class="input-control">
                <label for="contact">联&nbsp;&nbsp;系&nbsp;&nbsp;人</label>
                <span class="input-icon" id="contact-icon"></span>
                <div class="input-box-control">
                    <input type="text" id="contact" name="n_man" onblur="check_man(this.value)" maxlength="8" onfocus="check_man(this.value)">
                </div>
            </div>
            <div class="msg-control" id="contact-msg"></div>
            
            <div class="input-control">
                <label for="company">公司名称</label>
                <span class="input-icon" id="company-icon"></span>
                <div class="input-box-control">
                    <input type="text" id="company" name="n_company" onblur="check_company(this.value)" maxlength="20" onfocus="check_company(this.value)">
                </div>
            </div>
            <div class="msg-control" id="company-msg"></div>
            
            <div class="input-control">
                <label for="cellphone">手机号码</label>
                <span class="input-icon" id="cellphone-icon"></span>
                <div class="input-box-control">
                    <input type="text" id="cellphone" name="hd" onblur="check_hd()" maxlength="11 onfocus="check_hd()" onfocus="check_hd()">
                </div>
            </div>
            <div class="msg-control" id="cellphone-msg"></div>
            
            <div class="separator"></div>
            <div class="check-box">
                <input type="checkbox" id="agreement" name="agreement" checked="checked">
                <label for="agreement">我已阅读并同意<a href="${basePath}/bind/service">《一呼百应服务条款》</a></label>
            </div>
            <div class="submit-control">
                <a href="javascript:void(0)" class="bind-btn form-btn" id="reg-btn">注册并绑定</a>
            </div>
        	
        </form>
        
        <div class="layer"></div>
        <div class="alert-box">
            <div class="title">
                <h3>错误提醒</h3>
                <a href="javascript:void(0)" class="alert-btn"></a>
            </div>
            <div class="content">
                <p>对不起，没有此用户</p>
            </div>
        </div>
        
    </div>
    <footer>
        <h1>服务热线：020-62307188</h1>
    </footer>

<script src="${basePath}/js/zepto.min.js"></script>
<script src="${basePath}/js/all.js?v=1106"></script>
<script src="${basePath}/js/reg.js?v=1106"></script>

</body>
</html>